﻿@{
    ViewBag.Title = "附近没有便利店";
    Layout = "~/Views/Shared/_Layout.cshtml";
}
@Styles.Render("~/Content/css/business")
<header id="homeTitle" class="Index"></header>
<section class="IndexNone">
    <img src="@Url.Content("~/")images/no_store.png" />
    <p>
        <span>您附近暂无便利店</span>
        <span>请换个位置试试</span>
    </p>
    <p>
        <span>您也可以加入超人便利店</span>
        <span>在您附近设点</span>
    </p>
    <input type="button" value="我要加入">
</section>

<script>
    window.onload = function () {
        loadTitle();
    }

    function goLocation() {
        window.location.href = '@Url.Content("~/")' + 'Location/Index';
    }

    function goUserCenter() {
        window.location.href = '@Url.Content("~/")' + 'User/Index';
    }

    function loadTitle() {
        var addressName = AddressMgr.getCurName();
        var $div = $(
            '<div class=\"IndexHead\">'
            + '<a class=\"IndexHeadFl fll\" onclick=\"goLocation()\">'
            + '<span>' + addressName + '</span><img src=\"/images/triangle.png">'
            + '</a>'
            + '<a onclick=\"goUserCenter()\" class=\"IndexHeadFr flr\"><img src=\"/images/user.png\"></a>'
            + '</div>');
        $("header#homeTitle").append($div);
    }
</script>
